package com.ibeeking.found.msg.api.feign;

import com.ibeeking.found.msg.api.common.dto.KfAccountDTO;
import com.ibeeking.found.msg.api.common.dto.KfServicerDTO;
import com.ibeeking.found.msg.api.feign.fallback.MsgCopBFeignFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author ibeeking
 */
@FeignClient(name = "base-cop-b-server", path = "/b", contextId = "MsgCopBFeignClient", fallbackFactory = MsgCopBFeignFallbackFactory.class, decode404 = true)
public interface MsgCopBFeignClient {

    /**
     * 查询主客服账号
     *
     * @return
     */
    @PostMapping(value = "/kf/feign/v1/queryDefaultKfAccount")
    ResponseResult<KfAccountDTO> queryDefaultKfAccount();
    /**
     * 查询主客服账号
     *
     * @return
     */
    @PostMapping(value = "/kf/feign/v1/queryDefaultKfServicer")
    ResponseResult<KfServicerDTO> queryDefaultKfServicer();

}
